package com.nuc.recommend.service;

import com.nuc.recommend.common.BusinessException;
import com.nuc.recommend.model.UserModel;

import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;

public interface UserService {

    UserModel getUser(Integer id);

    UserModel register(UserModel registerUser) throws BusinessException, UnsupportedEncodingException, NoSuchAlgorithmException;
    //UserModel register(UserModel registerUser)throws UnsupportedEncodingException, NoSuchAlgorithmException ;
    UserModel login(String telphone, String password) throws UnsupportedEncodingException, NoSuchAlgorithmException, BusinessException;
    //UserModel login(String telphone, String password) throws UnsupportedEncodingException, NoSuchAlgorithmException;
    Integer countAllUser();
}
